# -*- coding:utf-8 -*-

from com.mat.rpa.utils.globalConstants import GlobalConstants
from com.mat.rpa.views.workWindow.leftPanel.directiveTree import treeItem
from .excel import excelAutoSubDirectiveTree
from .word import wordAutoSubDirectiveTree
class OfficeAutoSubDirectiveTree(treeItem.TreeItemWithID):
    def __init__(self, parent):
        super(OfficeAutoSubDirectiveTree, self).__init__(parent)
        self.createOfficeAutoTreeNode()

    def createOfficeAutoTreeNode(self):
        self.nodeType = GlobalConstants.treeBranchType
        self.directiveType = "officeAutoNode"
        self.setText(0,"office自动化")
        #挂载Excel和word子节点
        excelAutoSubDirectiveTree.ExcelAutoSubDirectiveTree(self) #挂载Excel操作子节点
        wordAutoSubDirectiveTree.WordAutoSubDirectiveTree(self) #挂载Word操作子节点
